﻿<Page
    x:Class="WellDone.PartialPaymentDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:WellDone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid
        x:Name="RootPanel"
        Background="#FF98DEF8"
        Opacity=".75"
        HorizontalAlignment="Stretch"
        VerticalAlignment="Stretch" Margin="0,0,0,0">

        <Grid x:Name="LayoutRoot" Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Width="400" Height="300">
            <Grid.RowDefinitions>
                <RowDefinition Height="50"/>
                <RowDefinition Height="50"/>
                <RowDefinition Height="50"/>
                <RowDefinition Height="50"/>
                <RowDefinition Height="Auto" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="160"></ColumnDefinition>
                <ColumnDefinition Width="250"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <TextBlock x:Name="tbCash" Text="Cash" FontSize="32" Margin="10,10,0,0" Grid.Row="1" Grid.Column="0"></TextBlock>
            <TextBox x:Name="txtAmount" Margin="10,10,0,0" Width="170" MaxLength="10" Text="0.00" FontSize="20" Grid.Row="1" Grid.Column="1" TextChanged="txtAmount_TextChanged" SelectionHighlightColor="#FF98DEF8"></TextBox>
            <TextBlock x:Name="tbCredit" Text="Credit" FontSize="32" Margin="10,10,0,0" Grid.Row="2" Grid.Column="0"></TextBlock>
            <TextBox x:Name="txtCreditAmount" Margin="10,10,0,0" Width="170" MaxLength="10" Text="0.00" FontSize="20" IsEnabled="False" Grid.Row="2" Grid.Column="1"></TextBox>
            <TextBlock x:Name="tbAuthCode" Text="Auth Code" FontSize="32" Margin="10,10,0,0" Grid.Row="3" Grid.Column="0"></TextBlock>
            <TextBox x:Name="txtAuthCode" Margin="10,10,0,0" Width="170" MaxLength="10" FontSize="20" Grid.Row="3" Grid.Column="1" SelectionHighlightColor="#FF98DEF8"></TextBox>
            <Button x:Name="btnCancel" Content="Cancel" Width="120" Margin="51,9,79,16" Height="85" FontSize="28" HorizontalAlignment="Center" Grid.Row="4" Click="btnCancel_Click" Grid.Column="1"/>
            <Button x:Name="btnOk" Content="OK" Width="120" Margin="79,9,211,16" Height="85" FontSize="28" HorizontalAlignment="Center" Grid.Row="4" Click="btnOk_Click" Grid.ColumnSpan="2"  />
            <TextBlock x:Name="tbMessage" HorizontalAlignment="Center" Margin="67,4,62,3" FontSize="36" TextWrapping="Wrap" Text="Partial Payment" VerticalAlignment="Center" Grid.Row="0" Grid.ColumnSpan="2" Width="281"/>
        </Grid>
    </Grid>
</Page>
